//
//  UIView+Common.m
//  Radar
//
//  Created by 吴浪 on 16/2/1.
//  Copyright © 2016年 吴浪. All rights reserved.
//

#import "UIView+Common.h"

@implementation UIView (Common)
+ (instancetype)viewWithColor:(UIColor *)color {
    UIView *view = [[self alloc] init];
    if (color != nil) {
        view.backgroundColor = color;
    }
    return view;
}

@end
